package com.ht.ui.actions.view;

import com.ht.aems.swing.util.MyAction;
import com.ht.ui.MainFrame;

import javax.swing.*;
import java.awt.event.ActionEvent;


/**
 * Created by IntelliJ IDEA.
 *
 * @author Dong Shufeng
 *         Date: 2008-7-17
 */
public class ShowStatusBar extends MyAction {
    public void actionPerformed(ActionEvent e) {
        Object obj = e.getSource();
        boolean b = ((JCheckBoxMenuItem) obj).isSelected();
        ((MainFrame) this.getAncestor()).getStatusBar().setVisible(b); //todo: not finished...
    }
}
